package com.zx.chatroom.po;

import javax.persistence.*;
import java.util.Date;

/**
 * ScoreInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "K_SCOREINFO")
public class ScoreInfo implements java.io.Serializable {

	// Fields

	private String id;
	private String fromuser;
	private String touser;
	private Date starttime;
	private Integer score;
	private Date endtime;

	// Constructors

	/** default constructor */
	public ScoreInfo() {
	}

	/** minimal constructor */
	public ScoreInfo(String id) {
		this.id = id;
	}

	/** full constructor */
	public ScoreInfo(String id, String fromuser, String touser,
			Date starttime, Integer score, Date endtime) {
		this.id = id;
		this.fromuser = fromuser;
		this.touser = touser;
		this.starttime = starttime;
		this.score = score;
		this.endtime = endtime;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 64)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "FROMUSER", length = 64)
	public String getFromuser() {
		return this.fromuser;
	}

	public void setFromuser(String fromuser) {
		this.fromuser = fromuser;
	}

	@Column(name = "TOUSER", length = 64)
	public String getTouser() {
		return this.touser;
	}

	public void setTouser(String touser) {
		this.touser = touser;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "STARTTIME", length = 7)
	public Date getStarttime() {
		return this.starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}

	@Column(name = "SCORE", precision = 22, scale = 0)
	public Integer getScore() {
		return this.score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "ENDTIME", length = 7)
	public Date getEndtime() {
		return this.endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

}